package com.xujianlun.cpms.entity.shop;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableName;
import com.xujianlun.cpms.entity.shop.Carts;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 订单表（业务数据）
 * </p>
 *
 * @author xujianlun
 * @since 2022-12-15
 */
@Getter
@Setter
@TableName("shop_orders")
@ApiModel(value = "Orders对象", description = "订单表（业务数据）")
public class Orders implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("订单名")
    private String name;

    @ApiModelProperty("订单金额")
    private BigDecimal sumPrice;

    @ApiModelProperty("订单状态(未支付，已支付）")
    private String status;

    @ApiModelProperty("下单时间")
    private String createTime;

    @ApiModelProperty("付款时间")
    private String payTime;

    @ApiModelProperty("订单人")
    private Integer userId;

    @ApiModelProperty("身份证")
    private String card;

    @ApiModelProperty("联系人")
    private String phone;

    @ApiModelProperty("订单号")
    private String no;
    @ApiModelProperty("地址")
    private String address;

    @ApiModelProperty("发货状态")
    private String deliverGoods;

    @TableField(exist = false)
    private String userName;

    @TableField(exist = false)
    private String nickName;

    @TableField(exist = false)
    private List<Carts> carts;
}
